package angryballsDecorateur.sounds;

import java.io.File;
import java.util.Observable;
import java.util.Observer;

public class CollisionSoundPlayer implements Observer {

	public static final String SOUND_PATH = "assets/sounds/collisionSound.wav";

	Sound sound;

	public CollisionSoundPlayer() {
		sound = new Sound(new File(SOUND_PATH));
	}

	@Override
	public void update(Observable arg0, Object arg1) {
		sound.play();
	}
}
